package com.czxy.demo01;

public class Test22 {
    public static void main(String[] args) {
        Sport sport = Create.getSport();

        FootBallSport fb = (FootBallSport)sport;

        fb.buyFootBall();


        PlayGame playGame = Create.getPlayGame();

        BasketBallSport bb =  (BasketBallSport) playGame;
        bb.game();

    }
}
